package com.example.demo.domain;

import com.ctsi.canal.starter.config.annotation.CanalTableName;

import java.io.Serializable;

/**
 * zt_user  -- 用户基本信息
 *
 * @author ajh
 */
@CanalTableName(value = "zt_user")
public class ZtUser implements Serializable {
    private Long    id;
    private Long    dept;
    private String  account;
    private String  realname;
    private String  role;
    private String  nickname;
    private String  gender;
    private String  email;
    private String  mobile;
    private Boolean deleted;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getDept() {
        return dept;
    }

    public void setDept(Long dept) {
        this.dept = dept;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getDeleted() {
        return deleted ? "0" : "1";
    }

    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    @Override public String toString() {
        return "ZtUser{" +
                "id=" + id +
                ", dept=" + dept +
                ", account='" + account + '\'' +
                ", realname='" + realname + '\'' +
                ", role='" + role + '\'' +
                ", nickname='" + nickname + '\'' +
                ", gender='" + gender + '\'' +
                ", email='" + email + '\'' +
                ", mobile='" + mobile + '\'' +
                ", deleted=" + deleted +
                '}';
    }
}
